<?php
class Hero{
	public $hp = 100;
	public $mp = 100;
	public $attack = 100;
	public $defanse = 100;
	public $equip = array();

	public function wear($obj){}
	
	public function display(){
		$output = array(
			"生命值：{$this->hp}",
			"精力值：{$this->mp}",
			"攻击力：{$this->attack}",
			"防御力：{$this->defanse}",
			"装备列表：" . implode('，', $this->equip)
		);
		echo implode('<br/>', $output), '<hr>';	
	}
}


